(function(){

    //Initialize Select2 Elements
    $("#city_id").select2();
    $("#img_pickfiles").coreImageUpload ({
        url: "/"+admin_site_area+"/content/area/ajax_upload?type=hotcity",
        inputOfFile: 'file',
        uploadedCallback: function (result) {
            console.log(result);
            if(result.code==200){
                var img = '<img style="width: 100px;height: 80px;" src="'+result.data.url+'"><input  type="hidden" name="url" value="'+result.data.path+'">';
                $("#pic_list").html(img);
            }else{
                alert(result.msg);
            }
        }
    });

})();